import request from '@/utils/request'

//添加小节
export function getVideoById(id) {
    return request({
            url:`/eduservice/video/getVideoById/${id}`,
            method: 'get'
    })
}

//添加小节
export function addVideo(video) {
    return request({
            url:`/eduservice/video/addVideo`,
            method: 'post',
            data: video
    })
}

//修改小节
export function updateVideo(video) {
    return request({
            url:`/eduservice/video/udpateVideo`,
            method: 'post',
            data: video
    })
}

//删除小节
export function deleteVideo(videoId) {
    return request({
            url:`/eduservice/video/${videoId}`,
            method: 'delete'
    })
}

//删除阿里云视频
export function deleteALiyVideo(videoId) {
    return request({
            url:`/eduvod/video/removeALiyVideo/${videoId}`,
            method: 'delete'
    })
}

